const getters = {
	userInfo: (state) => state.user.userInfo,
	token: (state) => state.user.token,
	menus: (state) => state.user.menus,
	isAdmin: (state) =>
		state.user.userInfo == null ? [] : state.user.userInfo.admin,
	permissions: (state) =>
		state.user.userInfo == null ? [] : state.user.userInfo.permissions,
};
export default getters;
